package com.zyt.springboot.teach_factoryProxy.simpleFactory;

/*
 * @params: 测试类
 */
//简单工厂模式
public class Test {
    public static void main(String[] args) {
        PhoneFactory phoneFactory = new PhoneFactory();
        System.out.println("我要制造小米手机");
        System.out.println(phoneFactory.makePhone("XiaoMi"));
        System.out.println("---------分割线---------------------------------------------");
        System.out.println("我要制造华为手机");
        System.out.println(phoneFactory.makePhone("HuaWei"));
        System.out.println("---------分割线---------------------------------------------");
        System.out.println("我要制造苹果手机");
        System.out.println(phoneFactory.makePhone("Iphone"));
    }
}
